<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>hr-m-s</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/style.css" >
</head>
<body>
<table width="800" border="1" align="center">
  <tr>
    <th colspan="7" scope="col">二级菜单列表</th>
  </tr>
  <tr>
    <td colspan="6">&nbsp;</td>
    <td align="center"><a href="childMenu!initFormData">新增</a></td>
  </tr>
  <tr>
    <td width="100" align="center">编号</td>
    <td width="250" align="center">名称</td>
    <td width="250" align="center">上级菜单</td>
	<td width="50" align="center">图标</td>
	<td width="50" align="center">启用</td>
    <td width="50" align="center">编辑</td>
    <td width="50" align="center">删除</td>
  </tr>
  <s:iterator value="childMenuVOList" var="list">
	  <tr>
	    <td align="center"><s:property value="childMenuID"/></td>
	    <td align="center"><s:property value="childMenuName"/></td>
	    <td align="center"><s:property value="parentMenu.parentMenuName"/></td>
	    <td align="center"><img src='<s:property value="childMenuIcon"/>'/></td>
	    <td align="center">
	    	<s:if test="childMenuDisplayKey == 1">是</s:if>
	    	<s:else>否</s:else>
	    </td>
		<td align="center"><a href='childMenu!update?mode=getChildMenuPO&childMenuID=<s:property value="childMenuID"/>'>编辑</a></td>
	    <td align="center"><a href='childMenu!delete?childMenuID=<s:property value="childMenuID"/>'>删除</a></td>
	  </tr>
  </s:iterator>
</table>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div id="showMsg" align="center"><s:property value="messageTips" /></div>
</body>
</html>
